home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
GUSI
/
Internalize
< prev
next >
Wrap
Text File
|
1993-11-08
|
1KB
|
56 lines
Perl -Sx "{0}" {"Parameters"}; Exit
#!/usr/local/bin/perl
#######################################################################
# Project : GUSI -
# File : Internalize.pl - Delete internal names
# Author : Matthias Neeracher
# Started : 18Oct92 Language : Perl
# Modified : 18Oct92 MN Separate strict variant
# 15Nov92 MN Allow FSp and FSSpec
# 07Feb93 MN Allow GUSIwith…
# 01Jun93 MN Allow Socket:: SocketDomain:: and DeviceSocketDomain:: to stay
# 09Aug93 MN Report missing externals
# Last : 09Aug93
#######################################################################
open(EXT, "GUSI.ext") || die "Can't open file \"GUSI.ext\"";
open(DN, ">GUSI.dn") || die "Can't open file \"GUSI.dn\"";
open(DNC, ">GUSI_C.dn") || die "Can't open file \"GUSI_C.dn\"";
while (<EXT>) {
chop;
$Extern{$_} = 1;
}
while (<>) {
@F = split;
next unless $F[4] eq "ext";
if ($Extern{$F[0]}) {
$Extern{$F[0]} = -1;
next;
}
next if $F[0] =~ /GUSI/;
if (($F[0] =~ /__9TFileSpec/)
|| ($F[0] =~ /__7Feature/)
|| ($F[0] =~ /__6Socket/)
|| ($F[0] =~ /__12SocketDomain/)
|| ($F[0] =~ /__18DeviceSocketDomain/)
|| ($F[0] =~ /PPCSocket/)
|| ($F[0] =~ /FSp/)
|| ($F[0] =~ /2FSSpec/)
) {
print DNC "-dn $F[0]\n";
} else {
print DN "-dn $F[0]\n";
}
}
foreach $i (sort keys Extern) {
print STDERR "Function \"$i\" apparently not implemented!\n" unless ($Extern{$i} == -1);
}